<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Doxygen: doc/tutorials/content/sources/iros2011/include/solution/surface.h 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Doxygen
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('iros2011_2include_2solution_2surface_8h_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">surface.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#ifndef SURFACE_H_</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#define SURFACE_H_</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160; </div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="preprocessor">#include &lt;pcl/kdtree/kdtree_flann.h&gt;</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="preprocessor">#include &lt;pcl/surface/mls.h&gt;</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="preprocessor">#include &lt;pcl/surface/convex_hull.h&gt;</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="preprocessor">#include &lt;pcl/surface/concave_hull.h&gt;</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="preprocessor">#include &lt;pcl/surface/gp3.h&gt;</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="preprocessor">#include &lt;pcl/surface/marching_cubes_greedy.h&gt;</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160; </div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#include &quot;typedefs.h&quot;</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160; </div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160; </div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="keyword">class </span><a class="code" href="class_mesh.html">Mesh</a></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;{</div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;  <span class="keyword">public</span>:</div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;    <a class="code" href="class_mesh.html">Mesh</a> () : points (new <a class="code" href="classpcl_1_1_point_cloud.html">PointCloud</a>) {}</div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;    PointCloudPtr points;</div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;    std::vector&lt;pcl::Vertices&gt; faces;</div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;};</div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160; </div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="keyword">typedef</span> boost::shared_ptr&lt;Mesh&gt; MeshPtr;</div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160; </div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;PointCloudPtr</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;smoothPointCloud (<span class="keyword">const</span> PointCloudPtr &amp; input, <span class="keywordtype">float</span> radius, <span class="keywordtype">int</span> polynomial_order)</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;{</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;  <a class="code" href="classpcl_1_1_moving_least_squares.html">pcl::MovingLeastSquares&lt;PointT, NormalT&gt;</a> mls;</div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;  mls.<a class="code" href="classpcl_1_1_moving_least_squares.html#ab0865f62d90c9fb0f45dd96e587fe84e">setSearchMethod</a> (pcl::KdTreeFLANN&lt;PointT&gt;::Ptr (<span class="keyword">new</span> <a class="code" href="classpcl_1_1_kd_tree_f_l_a_n_n.html">pcl::KdTreeFLANN&lt;PointT&gt;</a>));</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;  mls.<a class="code" href="classpcl_1_1_moving_least_squares.html#ae5e4d16c7aae631ef02bf1ee843bd55e">setSearchRadius</a> (radius);</div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;  mls.<a class="code" href="classpcl_1_1_moving_least_squares.html#a026b12106161eba174b69ef67d769950">setSqrGaussParam</a> (radius*radius);</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;  mls.<a class="code" href="classpcl_1_1_moving_least_squares.html#aec89a5e1f9001476eb1fc2b8db63d650">setPolynomialFit</a> (polynomial_order &gt; 1);</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;  mls.<a class="code" href="classpcl_1_1_moving_least_squares.html#a3127676a2bb32a32164a181bfbbf7589">setPolynomialOrder</a> (polynomial_order);</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;  </div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;  mls.<a class="code" href="classpcl_1_1_p_c_l_base.html#a1952d7101f3942bac3b69ed55c1ca7ea">setInputCloud</a> (input);</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160; </div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;  PointCloudPtr output (<span class="keyword">new</span> <a class="code" href="classpcl_1_1_point_cloud.html">PointCloud</a>);</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;  mls.reconstruct (*output);</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160; </div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;  <span class="keywordflow">return</span> (output);</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;}</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160; </div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;SurfaceElementsPtr</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;computeSurfaceElements (<span class="keyword">const</span> PointCloudPtr &amp; input, <span class="keywordtype">float</span> radius, <span class="keywordtype">int</span> polynomial_order)</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;{</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;  <a class="code" href="classpcl_1_1_moving_least_squares.html">pcl::MovingLeastSquares&lt;PointT, NormalT&gt;</a> mls;</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;  mls.<a class="code" href="classpcl_1_1_moving_least_squares.html#ab0865f62d90c9fb0f45dd96e587fe84e">setSearchMethod</a> (pcl::KdTreeFLANN&lt;PointT&gt;::Ptr (<span class="keyword">new</span> <a class="code" href="classpcl_1_1_kd_tree_f_l_a_n_n.html">pcl::KdTreeFLANN&lt;PointT&gt;</a>));</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;  mls.<a class="code" href="classpcl_1_1_moving_least_squares.html#ae5e4d16c7aae631ef02bf1ee843bd55e">setSearchRadius</a> (radius);</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;  mls.<a class="code" href="classpcl_1_1_moving_least_squares.html#a026b12106161eba174b69ef67d769950">setSqrGaussParam</a> (radius*radius);</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;  mls.<a class="code" href="classpcl_1_1_moving_least_squares.html#aec89a5e1f9001476eb1fc2b8db63d650">setPolynomialFit</a> (polynomial_order &gt; 1);</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;  mls.<a class="code" href="classpcl_1_1_moving_least_squares.html#a3127676a2bb32a32164a181bfbbf7589">setPolynomialOrder</a> (polynomial_order);</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;  </div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;  mls.<a class="code" href="classpcl_1_1_p_c_l_base.html#a1952d7101f3942bac3b69ed55c1ca7ea">setInputCloud</a> (input);</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160; </div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;  PointCloudPtr points (<span class="keyword">new</span> <a class="code" href="classpcl_1_1_point_cloud.html">PointCloud</a>);</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;  SurfaceNormalsPtr normals (<span class="keyword">new</span> <a class="code" href="classpcl_1_1_point_cloud.html">SurfaceNormals</a>);</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;  mls.setOutputNormals (normals);</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;  mls.reconstruct (*points);</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160; </div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;  SurfaceElementsPtr surfels (<span class="keyword">new</span> <a class="code" href="classpcl_1_1_point_cloud.html">SurfaceElements</a>);</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;  <a class="code" href="group__common.html#gaa65b1c8d782e7b776ae682679d2d948f">pcl::copyPointCloud</a> (*points, *surfels);</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;  <a class="code" href="group__common.html#gaa65b1c8d782e7b776ae682679d2d948f">pcl::copyPointCloud</a> (*normals, *surfels);</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;  <span class="keywordflow">return</span> (surfels);</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;}</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160; </div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;MeshPtr</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;computeConvexHull (<span class="keyword">const</span> PointCloudPtr &amp; input)</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;{</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;  pcl::ConvexHull&lt;PointT&gt; convex_hull;</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;  convex_hull.setInputCloud (input);</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160; </div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;  MeshPtr output (<span class="keyword">new</span> <a class="code" href="class_mesh.html">Mesh</a>);</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;  convex_hull.reconstruct (*(output-&gt;points), output-&gt;faces);</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160; </div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;  <span class="keywordflow">return</span> (output);</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;}</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160; </div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160; </div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;MeshPtr</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;computeConcaveHull (<span class="keyword">const</span> PointCloudPtr &amp; input, <span class="keywordtype">float</span> alpha)</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;{</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;  pcl::ConcaveHull&lt;PointT&gt; concave_hull;</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;  concave_hull.setInputCloud (input);</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;  concave_hull.setAlpha (alpha);</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160; </div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;  MeshPtr output (<span class="keyword">new</span> <a class="code" href="class_mesh.html">Mesh</a>);</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;  concave_hull.reconstruct (*(output-&gt;points), output-&gt;faces);</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160; </div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;  <span class="keywordflow">return</span> (output);</div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;}</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160; </div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;pcl::PolygonMesh::Ptr</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;greedyTriangulation (<span class="keyword">const</span> SurfaceElementsPtr &amp; surfels, <span class="keywordtype">float</span> radius, <span class="keywordtype">float</span> mu, <span class="keywordtype">int</span> max_nearest_neighbors, </div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;                     <span class="keywordtype">float</span> max_surface_angle, <span class="keywordtype">float</span> min_angle, <span class="keywordtype">float</span> max_angle)</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160; </div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;{</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;  <a class="code" href="classpcl_1_1_greedy_projection_triangulation.html">pcl::GreedyProjectionTriangulation&lt;pcl::PointNormal&gt;</a> gpt;</div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;  gpt.<a class="code" href="classpcl_1_1_p_c_l_surface_base.html#af599c9767a18649344ff21d3976f1779">setSearchMethod</a> (pcl::KdTreeFLANN&lt;pcl::PointNormal&gt;::Ptr (<span class="keyword">new</span> <a class="code" href="classpcl_1_1_kd_tree_f_l_a_n_n.html">pcl::KdTreeFLANN&lt;pcl::PointNormal&gt;</a>));</div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160; </div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;  gpt.<a class="code" href="classpcl_1_1_greedy_projection_triangulation.html#a05c546fbd885e103573960ff22d70454">setSearchRadius</a> (radius);</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;  gpt.<a class="code" href="classpcl_1_1_greedy_projection_triangulation.html#a8c0cfbd5d9843f2414e5ff426b61e2e5">setMaximumNearestNeighbors</a> (max_nearest_neighbors);</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;  gpt.<a class="code" href="classpcl_1_1_greedy_projection_triangulation.html#aeaef2c77774b0cc22b1b4fd0189f8042">setMu</a> (mu);</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;  gpt.setMaximumSurfaceAgle (max_surface_angle);</div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;  gpt.<a class="code" href="classpcl_1_1_greedy_projection_triangulation.html#ac379baa93391656d84824ea5a9806b1f">setMinimumAngle</a> (min_angle);</div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;  gpt.<a class="code" href="classpcl_1_1_greedy_projection_triangulation.html#adf103aba42e0132f580a755010188481">setMaximumAngle</a> (max_angle);</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;  gpt.<a class="code" href="classpcl_1_1_greedy_projection_triangulation.html#a8b5c4a1eea1b1002521ae54e49dce2a4">setNormalConsistency</a> (<span class="keyword">true</span>);</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160; </div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;  gpt.<a class="code" href="classpcl_1_1_p_c_l_base.html#a1952d7101f3942bac3b69ed55c1ca7ea">setInputCloud</a> (surfels);</div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;  pcl::PolygonMesh::Ptr output (<span class="keyword">new</span> <a class="code" href="structpcl_1_1_polygon_mesh.html">pcl::PolygonMesh</a>);</div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;  gpt.<a class="code" href="classpcl_1_1_mesh_construction.html#a77b1b6e0eca6e76f2081665d10e0e169">reconstruct</a> (*output);</div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160; </div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;  <span class="keywordflow">return</span> (output);</div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;}</div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160; </div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160; </div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;pcl::PolygonMesh::Ptr</div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;marchingCubesTriangulation (<span class="keyword">const</span> SurfaceElementsPtr &amp; surfels, <span class="keywordtype">float</span> leaf_size, <span class="keywordtype">float</span> iso_level)</div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;{</div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;  pcl::MarchingCubesGreedy&lt;SurfelT&gt; marching_cubes;</div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;  marching_cubes.setSearchMethod (pcl::KdTree&lt;SurfelT&gt;::Ptr (<span class="keyword">new</span> <a class="code" href="classpcl_1_1_kd_tree_f_l_a_n_n.html">pcl::KdTreeFLANN&lt;SurfelT&gt;</a> ()));</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;  marching_cubes.setLeafSize (leaf_size);</div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;  marching_cubes.setIsoLevel (iso_level);</div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160; </div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;  marching_cubes.setInputCloud (surfels);</div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;  pcl::PolygonMesh::Ptr output (<span class="keyword">new</span> <a class="code" href="structpcl_1_1_polygon_mesh.html">pcl::PolygonMesh</a>);</div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;  marching_cubes.reconstruct (*output);</div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;  </div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;  <span class="keywordflow">return</span> (output);</div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;}</div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160; </div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="ttc" id="aclass_mesh_html"><div class="ttname"><a href="class_mesh.html">Mesh</a></div><div class="ttdef"><b>Definition:</b> surface.h:15</div></div>
<div class="ttc" id="aclasspcl_1_1_greedy_projection_triangulation_html"><div class="ttname"><a href="classpcl_1_1_greedy_projection_triangulation.html">pcl::GreedyProjectionTriangulation</a></div><div class="ttdoc">GreedyProjectionTriangulation is an implementation of a greedy triangulation algorithm for 3D points ...</div><div class="ttdef"><b>Definition:</b> gp3.h:139</div></div>
<div class="ttc" id="aclasspcl_1_1_greedy_projection_triangulation_html_a05c546fbd885e103573960ff22d70454"><div class="ttname"><a href="classpcl_1_1_greedy_projection_triangulation.html#a05c546fbd885e103573960ff22d70454">pcl::GreedyProjectionTriangulation::setSearchRadius</a></div><div class="ttdeci">void setSearchRadius(double radius)</div><div class="ttdoc">Set the sphere radius that is to be used for determining the k-nearest neighbors used for triangulati...</div><div class="ttdef"><b>Definition:</b> gp3.h:230</div></div>
<div class="ttc" id="aclasspcl_1_1_greedy_projection_triangulation_html_a8b5c4a1eea1b1002521ae54e49dce2a4"><div class="ttname"><a href="classpcl_1_1_greedy_projection_triangulation.html#a8b5c4a1eea1b1002521ae54e49dce2a4">pcl::GreedyProjectionTriangulation::setNormalConsistency</a></div><div class="ttdeci">void setNormalConsistency(bool consistent)</div><div class="ttdoc">Set the flag if the input normals are oriented consistently.</div><div class="ttdef"><b>Definition:</b> gp3.h:274</div></div>
<div class="ttc" id="aclasspcl_1_1_greedy_projection_triangulation_html_a8c0cfbd5d9843f2414e5ff426b61e2e5"><div class="ttname"><a href="classpcl_1_1_greedy_projection_triangulation.html#a8c0cfbd5d9843f2414e5ff426b61e2e5">pcl::GreedyProjectionTriangulation::setMaximumNearestNeighbors</a></div><div class="ttdeci">void setMaximumNearestNeighbors(int nnn)</div><div class="ttdoc">Set the maximum number of nearest neighbors to be searched for.</div><div class="ttdef"><b>Definition:</b> gp3.h:219</div></div>
<div class="ttc" id="aclasspcl_1_1_greedy_projection_triangulation_html_ac379baa93391656d84824ea5a9806b1f"><div class="ttname"><a href="classpcl_1_1_greedy_projection_triangulation.html#ac379baa93391656d84824ea5a9806b1f">pcl::GreedyProjectionTriangulation::setMinimumAngle</a></div><div class="ttdeci">void setMinimumAngle(double minimum_angle)</div><div class="ttdoc">Set the minimum angle each triangle should have.</div><div class="ttdef"><b>Definition:</b> gp3.h:241</div></div>
<div class="ttc" id="aclasspcl_1_1_greedy_projection_triangulation_html_adf103aba42e0132f580a755010188481"><div class="ttname"><a href="classpcl_1_1_greedy_projection_triangulation.html#adf103aba42e0132f580a755010188481">pcl::GreedyProjectionTriangulation::setMaximumAngle</a></div><div class="ttdeci">void setMaximumAngle(double maximum_angle)</div><div class="ttdoc">Set the maximum angle each triangle can have.</div><div class="ttdef"><b>Definition:</b> gp3.h:252</div></div>
<div class="ttc" id="aclasspcl_1_1_greedy_projection_triangulation_html_aeaef2c77774b0cc22b1b4fd0189f8042"><div class="ttname"><a href="classpcl_1_1_greedy_projection_triangulation.html#aeaef2c77774b0cc22b1b4fd0189f8042">pcl::GreedyProjectionTriangulation::setMu</a></div><div class="ttdeci">void setMu(double mu)</div><div class="ttdoc">Set the multiplier of the nearest neighbor distance to obtain the final search radius for each point ...</div><div class="ttdef"><b>Definition:</b> gp3.h:209</div></div>
<div class="ttc" id="aclasspcl_1_1_kd_tree_f_l_a_n_n_html"><div class="ttname"><a href="classpcl_1_1_kd_tree_f_l_a_n_n.html">pcl::KdTreeFLANN</a></div><div class="ttdoc">KdTreeFLANN is a generic type of 3D spatial locator using kD-tree structures. The class is making use...</div><div class="ttdef"><b>Definition:</b> kdtree_flann.h:70</div></div>
<div class="ttc" id="aclasspcl_1_1_mesh_construction_html_a77b1b6e0eca6e76f2081665d10e0e169"><div class="ttname"><a href="classpcl_1_1_mesh_construction.html#a77b1b6e0eca6e76f2081665d10e0e169">pcl::MeshConstruction::reconstruct</a></div><div class="ttdeci">virtual void reconstruct(pcl::PolygonMesh &amp;output)</div><div class="ttdoc">Base method for surface reconstruction for all points given in &lt;setInputCloud (), setIndices ()&gt;</div><div class="ttdef"><b>Definition:</b> reconstruction.hpp:126</div></div>
<div class="ttc" id="aclasspcl_1_1_moving_least_squares_html"><div class="ttname"><a href="classpcl_1_1_moving_least_squares.html">pcl::MovingLeastSquares</a></div><div class="ttdoc">MovingLeastSquares represent an implementation of the MLS (Moving Least Squares) algorithm for data s...</div><div class="ttdef"><b>Definition:</b> mls.h:66</div></div>
<div class="ttc" id="aclasspcl_1_1_moving_least_squares_html_a026b12106161eba174b69ef67d769950"><div class="ttname"><a href="classpcl_1_1_moving_least_squares.html#a026b12106161eba174b69ef67d769950">pcl::MovingLeastSquares::setSqrGaussParam</a></div><div class="ttdeci">void setSqrGaussParam(double sqr_gauss_param)</div><div class="ttdoc">Set the parameter used for distance based weighting of neighbors (the square of the search radius wor...</div><div class="ttdef"><b>Definition:</b> mls.h:180</div></div>
<div class="ttc" id="aclasspcl_1_1_moving_least_squares_html_a3127676a2bb32a32164a181bfbbf7589"><div class="ttname"><a href="classpcl_1_1_moving_least_squares.html#a3127676a2bb32a32164a181bfbbf7589">pcl::MovingLeastSquares::setPolynomialOrder</a></div><div class="ttdeci">void setPolynomialOrder(int order)</div><div class="ttdoc">Set the order of the polynomial to be fit.</div><div class="ttdef"><b>Definition:</b> mls.h:148</div></div>
<div class="ttc" id="aclasspcl_1_1_moving_least_squares_html_ab0865f62d90c9fb0f45dd96e587fe84e"><div class="ttname"><a href="classpcl_1_1_moving_least_squares.html#ab0865f62d90c9fb0f45dd96e587fe84e">pcl::MovingLeastSquares::setSearchMethod</a></div><div class="ttdeci">void setSearchMethod(const KdTreePtr &amp;tree)</div><div class="ttdoc">Provide a pointer to the search object.</div><div class="ttdef"><b>Definition:</b> mls.h:132</div></div>
<div class="ttc" id="aclasspcl_1_1_moving_least_squares_html_ae5e4d16c7aae631ef02bf1ee843bd55e"><div class="ttname"><a href="classpcl_1_1_moving_least_squares.html#ae5e4d16c7aae631ef02bf1ee843bd55e">pcl::MovingLeastSquares::setSearchRadius</a></div><div class="ttdeci">void setSearchRadius(double radius)</div><div class="ttdoc">Set the sphere radius that is to be used for determining the k-nearest neighbors used for fitting.</div><div class="ttdef"><b>Definition:</b> mls.h:169</div></div>
<div class="ttc" id="aclasspcl_1_1_moving_least_squares_html_aec89a5e1f9001476eb1fc2b8db63d650"><div class="ttname"><a href="classpcl_1_1_moving_least_squares.html#aec89a5e1f9001476eb1fc2b8db63d650">pcl::MovingLeastSquares::setPolynomialFit</a></div><div class="ttdeci">void setPolynomialFit(bool polynomial_fit)</div><div class="ttdoc">Sets whether the surface and normal are approximated using a polynomial, or only via tangent estimati...</div><div class="ttdef"><b>Definition:</b> mls.h:158</div></div>
<div class="ttc" id="aclasspcl_1_1_p_c_l_base_html_a1952d7101f3942bac3b69ed55c1ca7ea"><div class="ttname"><a href="classpcl_1_1_p_c_l_base.html#a1952d7101f3942bac3b69ed55c1ca7ea">pcl::PCLBase::setInputCloud</a></div><div class="ttdeci">virtual void setInputCloud(const PointCloudConstPtr &amp;cloud)</div><div class="ttdoc">Provide a pointer to the input dataset</div><div class="ttdef"><b>Definition:</b> pcl_base.hpp:66</div></div>
<div class="ttc" id="aclasspcl_1_1_p_c_l_surface_base_html_af599c9767a18649344ff21d3976f1779"><div class="ttname"><a href="classpcl_1_1_p_c_l_surface_base.html#af599c9767a18649344ff21d3976f1779">pcl::PCLSurfaceBase::setSearchMethod</a></div><div class="ttdeci">void setSearchMethod(const KdTreePtr &amp;tree)</div><div class="ttdoc">Provide an optional pointer to a search object.</div><div class="ttdef"><b>Definition:</b> reconstruction.h:80</div></div>
<div class="ttc" id="aclasspcl_1_1_point_cloud_html"><div class="ttname"><a href="classpcl_1_1_point_cloud.html">pcl::PointCloud</a></div><div class="ttdoc">PointCloud represents the base class in PCL for storing collections of 3D points.</div><div class="ttdef"><b>Definition:</b> point_cloud.h:173</div></div>
<div class="ttc" id="agroup__common_html_gaa65b1c8d782e7b776ae682679d2d948f"><div class="ttname"><a href="group__common.html#gaa65b1c8d782e7b776ae682679d2d948f">pcl::copyPointCloud</a></div><div class="ttdeci">PCL_EXPORTS void copyPointCloud(const pcl::PCLPointCloud2 &amp;cloud_in, const std::vector&lt; int &gt; &amp;indices, pcl::PCLPointCloud2 &amp;cloud_out)</div><div class="ttdoc">Extract the indices of a given point cloud as a new point cloud</div></div>
<div class="ttc" id="astructpcl_1_1_polygon_mesh_html"><div class="ttname"><a href="structpcl_1_1_polygon_mesh.html">pcl::PolygonMesh</a></div><div class="ttdef"><b>Definition:</b> PolygonMesh.h:16</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_e68e8157741866f444e17edd764ebbae.html">doc</a></li><li class="navelem"><a class="el" href="dir_5b0b179e83013be2ae877b5cea1eb6e2.html">tutorials</a></li><li class="navelem"><a class="el" href="dir_e680b2aa8c25f53365b84c58875b1c5f.html">content</a></li><li class="navelem"><a class="el" href="dir_532239a1d34197dad6a28d101a9d1eb1.html">sources</a></li><li class="navelem"><a class="el" href="dir_dc18034378e971a7d2a66e8678707627.html">iros2011</a></li><li class="navelem"><a class="el" href="dir_b33dbc01ddc5e550e5653133c8eb44ca.html">include</a></li><li class="navelem"><a class="el" href="dir_e8e750b87e7bfd729572f942067e7678.html">solution</a></li><li class="navelem"><b>surface.h</b></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
